package proxy.rmi;import java.rmi.Naming;import java.rmi.RemoteException;import java.rmi.server.UnicastRemoteObject;/** * Created by Administrator on 2018-11-5. */public class MyRemoteImpl extends UnicastRemoteObject implements MyRemote {    public MyRemoteImpl() throws RemoteException {    }    public String sayHello() {        return "Server says,'hey'";    }    public static void main(String[] args) {        try {            MyRemote service = new MyRemoteImpl();            Naming.rebind("RemoteHello", service);        } catch (Exception e) {            e.printStackTrace();        }    }}